<?php
$this->load->view("header");
?>
<div id="main_content">
<div class="titlebar"><?= $title;?></div>
<!--The following table is for detailed book information-->
<?php
$this->load->view("bookdetail");
?>

<table id="book_item" cellspacing="0" cellpadding="0" class="BookItem" onmouseover="this.style.background = &quot;#f2f3f4&quot;;" onmouseout="this.style.background = &quot;#ffffff&quot;;" >
    <tbody>
    <tr class="tr-margin"><td></tr>
    <tr>
    <td valign="top" align="left" >
           <table class="BookInfo" cellspacing="0" cellpadding="0" >
            <tbody>
            <tr><td class="title"  align="left">买家：<a href="<?=site_url()?>/bookiki/enterShop?id=<?=$post->user_id?>&go=yes" name="landingpagelink"><?=$post->user_id?></a>
            </td></tr>
            <tr><td class="tracks" colspan="10" align="left">可以接受的价格区间：￥<?=$post->start_price?>-￥<?=$post->end_price?>
            </td>
            </tr>
            <tr><td class="tracks" colspan="10" align="left">
            <?php if($contact=="none"){?>
                <a href="<?=site_url()?>/post/wantedpost_detail?userid=<?=$post->user_id?>&bookid=<?=$post->book_id?>&contact=yes">联系方式</a>
                <?php }else{?>
                手机:<?=$post->phone?>
                email:<?=$post->email?>
                QQ:<?=$post->qq?>
                <?php } ?>
            </td></tr>
            <tr>
            <td class="tracks" colspan="10" align="left">
                <?php 
                   $content=urlencode($post->book_title);
                   $receiver=urlencode($post->user_id);
                 ?>
                <a href="<?=site_url()?>/user/edit_msg?content=<?=$content?>&type=sale&receiver=<?=$receiver?>&go=yes">发站内信</a>
            </td>
            </tr>
            </tbody>
            </table>
      </td>
    </tr>
    </tbody>
</table>

<?php
$this->load->view("footer");
?>